3D Surface Plot

Load Packages

library(plotly)
## Loading required package: ggplot2
## 
## Attaching package: 'plotly'
## The following object is masked from 'package:ggplot2':
## 
##     last_plot
## The following object is masked from 'package:stats':
## 
##     filter
## The following object is masked from 'package:graphics':
## 
##     layout

Plotting Map

plot_ly(z = volcano, type = "surface")

Boxplot

p <- plot_ly(midwest, x = ~ percollege, color = ~ state, type = "box")
p